package com.siashan.unipay4j.core.splitbill;

import com.siashan.unipay4j.core.IBaseEnum;

/**
 * 分账结果状态返回值
 *
 * @author siashan
 * @since v1.0.1
 **/
public enum SplitBillState implements IBaseEnum<String> {
    /**
     * 付款成功
     */
    SUCCESS("SUCCESS", "付款成功"),
    /**
     * 付款失败
     */
    FAILED("FAILED", "付款失败"),
    /**
     * 处理中
     */
    PROCESSING("PROCESSING", "处理中"),
    /**
     * 银行退票
     */
    BANK_FAIL("BANK_FAIL", "银行退票"),
    /**
     * 状态未知
     */
    UNKNOWN("UNKNOWN", "状态未知"),
    ;
    private String value;
    private String desp;

    SplitBillState(String value, String desp) {
        this.value = value;
        this.desp = desp;
    }


    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDesp() {
        return desp;
    }

    public void setDesp(String desp) {
        this.desp = desp;
    }
}
